package elka.sag.logisticsystem.bean;

import java.util.Date;

public class Order {
	private Long id;
	private OrderStatus status;
	private String lastActionComment;
	private boolean isProcess;
    private Date date;
    private int lastActionCode;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public OrderStatus getStatus() {
		return status;
	}
	public void setStatus(OrderStatus status) {
		this.status = status;
	}

	public boolean isProcess() {
		return isProcess;
	}
	public String getLastActionComment() {
		return lastActionComment;
	}
	public void setLastActionComment(String lastActionComment) {
		this.lastActionComment = lastActionComment;
	}
	public void setProcess(boolean isProcess) {
		this.isProcess = isProcess;
	}

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getLastActionCode() {
        return lastActionCode;
    }

    public void setLastActionCode(int lastActionCode) {
        this.lastActionCode = lastActionCode;
    }

    public enum OrderStatus {
		NEW, VERIFY, DOC_GENERATOR, INVENTORY, NOTIFICATION, ERROR, DELIVERY, COMPLETE, FACTORY
	}
}
